package com.guigu.www.controller;


import com.guigu.www.pojo.TInterposeFood;
import com.guigu.www.pojo.TMember;
import com.guigu.www.service.TInterposeFoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 * 饮食方案表 前端控制器
 * </p>
 *
 * @author yb
 * @since 2021-06-29
 */
@RestController
@CrossOrigin
public class TInterposeFoodController {

    @Autowired
    private TInterposeFoodService tInterposeFoodService;
    @PostMapping("ssgy")
    public List<TInterposeFood> ssgy(@RequestBody TInterposeFood tInterposeFood){
        List<TInterposeFood> showid = tInterposeFoodService.showid(tInterposeFood.getTMemberId());
        return showid;
    }
}

